<template>
    <div class="barTitle" :style="style">
        <b>{{title || '标题'}}<em class="tipsBox" v-if="tips">{{tips}}</em></b><slot/>
    </div>
</template>

<script setup>
    const props = defineProps({
        title:'',
        style:'',
        tips:''
    })
</script>

<style lang="scss" scoped>
.barTitle{
    display: flex;
    box-sizing: border-box;
    align-items: center;
    padding: 0;
    height: 42px;
    background-color: rgba(0, 173, 110,0.08);
    margin: 0;
    color: #666;
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    &::before{
        content: '';
        display: block;
        width: 3px;
        background: #FF9C00;
        height: 16px;
        margin: 0 4px 0 0;
    }
    b{
        font-weight: 600;
        color: #333333;
        .tipsBox{
            color: #25B983;
            font-size: 12px;
            font-weight: 600;
        }
    }
}
</style>